package java8_13;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Score2 {
    public static void main(String[] args) {
        int [][]a=new int[3][5];//3*5
        Scanner in=new Scanner(System.in);
        int sum=0;
        for(int i=0;i<a.length;i++){
            sum=0;
            System.out.println("请输入"+(i+1)+"班同学的成绩:");
            for(int j=0;j<a[i].length;j++){
                a[i][j]=in.nextInt();
                sum+=a[i][j];
            }
            System.out.println((i+1)+"班的总成绩是："+sum);
        }
    }
}
